package com.ruoyi.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manage.mapper.GRoadBasicMapper;
import com.ruoyi.manage.domain.GRoadBasic;
import com.ruoyi.manage.service.IGRoadBasicService;

/**
 * 路线信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-11
 */
@Service
public class GRoadBasicServiceImpl implements IGRoadBasicService 
{
    @Autowired
    private GRoadBasicMapper gRoadBasicMapper;

    /**
     * 查询路线信息
     * 
     * @param id 路线信息主键
     * @return 路线信息
     */
    @Override
    public GRoadBasic selectGRoadBasicById(Long id)
    {
        return gRoadBasicMapper.selectGRoadBasicById(id);
    }

    /**
     * 查询路线信息列表
     * 
     * @param gRoadBasic 路线信息
     * @return 路线信息
     */
    @Override
    public List<GRoadBasic> selectGRoadBasicList(GRoadBasic gRoadBasic)
    {
        return gRoadBasicMapper.selectGRoadBasicList(gRoadBasic);
    }

    /**
     * 新增路线信息
     * 
     * @param gRoadBasic 路线信息
     * @return 结果
     */
    @Override
    public int insertGRoadBasic(GRoadBasic gRoadBasic)
    {
        return gRoadBasicMapper.insertGRoadBasic(gRoadBasic);
    }

    /**
     * 修改路线信息
     * 
     * @param gRoadBasic 路线信息
     * @return 结果
     */
    @Override
    public int updateGRoadBasic(GRoadBasic gRoadBasic)
    {
        return gRoadBasicMapper.updateGRoadBasic(gRoadBasic);
    }

    /**
     * 批量删除路线信息
     * 
     * @param ids 需要删除的路线信息主键
     * @return 结果
     */
    @Override
    public int deleteGRoadBasicByIds(Long[] ids)
    {
        return gRoadBasicMapper.deleteGRoadBasicByIds(ids);
    }

    /**
     * 删除路线信息信息
     * 
     * @param id 路线信息主键
     * @return 结果
     */
    @Override
    public int deleteGRoadBasicById(Long id)
    {
        return gRoadBasicMapper.deleteGRoadBasicById(id);
    }
}
